#include <QtGui/QApplication>
#include <QtGui/QSplashScreen>
#include <QDebug>
#include <windows.h>
#include "mainwindow.h"

int main(int argc, char *argv[])
{

    QApplication a(argc, argv);

    QPixmap pix(":/splash.png");
    QSplashScreen splash;
    splash.setPixmap(pix);
    splash.show();

    a.processEvents();
    splash.showMessage("Chargement...", Qt::AlignBottom);

    MainWindow w(&splash);
//    QObject::connect(w, SIGNAL()
//    qDebug() <<

    w.show();
    splash.finish(&w);

    return a.exec();
}
